import request from '@/utils/request'

// 查询资讯分类列表
export function listHealthNoticeCategory(query) {
  return request({
    url: '/health/healthNoticeCategory/list',
    method: 'get',
    params: query
  })
}

// 按id查询资讯分类
export function getHealthNoticeCategory(id) {
  return request({
    url: '/health/healthNoticeCategory/' + id,
    method: 'get'
  })
}

// 新增资讯分类
export function addHealthNoticeCategory(data) {
  return request({
    url: '/health/healthNoticeCategory',
    method: 'post',
    data: data
  })
}

// 修改资讯分类
export function updateHealthNoticeCategory(data) {
  return request({
    url: '/health/healthNoticeCategory',
    method: 'put',
    data: data
  })
}

// 删除资讯分类
export function delHealthNoticeCategory(id) {
  return request({
    url: '/health/healthNoticeCategory/' + id,
    method: 'delete'
  })
}
